#define _CRT_SECURE_NO_WARNINGS
#include"stack.h"
void test()
{
	st s;
	StInit(&s);
	StPush(&s, 1);
	StPush(&s, 2);
	StPush(&s, 3);
	StPush(&s, 4);
	while (JudgeEmpty(&s)) {
		printf("%d\n", GetTop(&s));
		StPop(&s);
	}
	StDestroy(&s);
}
int main()
{
	test();
	return 0;
}